package com.echo.fm.content.news;

import com.echo.fm.content.news.model.News;
import com.echo.fm.content.news.model.NewsDto;
import com.echo.util.ErrorException;

import java.util.List;

public interface INewsService {
	public void addNews(News news) throws ErrorException;

	public void deleteNews(News news) throws ErrorException;

	public News searchNewsById(String id) throws ErrorException;

	public void updateNewsById(News news) throws ErrorException;

	public List<NewsDto> listSearchNews(String title, Long startTimeL, Long endTimeL, Integer status, Integer newsType,
			Integer max, Integer fristNumber) throws ErrorException;
}
